<?php
Class Search extends MY_Controller
{
    public function __construct()
    {
        parent::__construct();
        $this->data['controller'] = 'search';
        $this->load->model('Mproduct');  
    }
    
    public function results()
    {
        $this->data['action'] = __FUNCTION__;
        
        //$this->data['param'] = $this->getParamString('search','');
        $this->data['list_search_products'] = $this->Mproduct->getListProductsSearch();
        
        $this->data['action'] = 'results';
        $this->load->view('temp/layout', $this->data);
    }
      
}